package com.yao.spider.proxy.TestTask;

import com.yao.spider.proxy.ProxyPool;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by 单耀 on 2017/12/17.
 */
public class PrintProxyPoolInfo implements Runnable{
    private static Logger logger = LoggerFactory.getLogger(PrintProxyPoolInfo.class);
    public void run() {
        while (true) {
            System.out.println("目前可用代理数量："+ProxyPool.proxyQueue.size());
            try {
                Thread.sleep(4000);
            } catch (InterruptedException e) {
                logger.error("InterruptedException",e);
            }
        }
    }
}
